#ifndef GAMESETTING_H
#define GAMESETTING_H

#include <QObject>

class GameSetting : public QObject
{
    Q_PROPERTY(int playerNumber READ playerNumber WRITE setPlayerNumber)
    Q_PROPERTY(int questionNumber READ questionNumber WRITE setQuestionNumber)
    Q_PROPERTY(GameMode gameMode READ gameMode WRITE setGameMode)
    Q_ENUMS(GameMode)
    Q_OBJECT
public:
    explicit GameSetting(QObject *parent = nullptr);


    enum GameMode{
        Freeze  = 0,
        Nonfreeze
    };



    int playerNumber() const;
    int questionNumber() const;
    GameMode gameMode() const;

    void setPlayerNumber(int playerNumber);
    void setQuestionNumber(int questionNumber);
    void setGameMode(GameMode  gameMode);

signals:

public slots:


private:
    int     m_playerNumber;
    int     m_questionNumber;
    GameMode    m_gameMode;
};

#endif // GAMESETTING_H
